package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.Discussreply;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface DiscussreplyService {
    public boolean createDiscussreply(Discussreply discussreply);
    public Map<String,Object> selectDiscussreplyById(Integer discussreplyId);
    public List<Map<String,Object>> selectDiscussreplyByUserId(Integer userId);

    Page<Map<String,Object>> getPageByUserId(Integer currentPage, Integer pageSize, Integer userId);

    public List<Map<String,Object>> selectDiscussreplyByDiscussId(Integer discussId);

    Page<Map<String,Object>> getPageByDiscussId(Integer currentPage, Integer pageSize, Integer discussId);

    public boolean deleteDiscussreply(Integer discussreplyId);
}
